package com.lagou.task09;

//使用implement表示实现
public class Gold implements Money, Metal {
    @Override
    public void shop() {
        System.out.println("闪闪发光");
    }

    @Override
    public void shine() {
        System.out.println("买了好多吃的");
    }

    public static void main(String[] args) {
        Gold g1 = new Gold();
        g1.shine();
        g1.shop();

        //形成多态
        Metal m1 = new Gold();
        m1.shine();
        Money m2 = new Gold();
        m2.shop();
    }
}
